﻿//using System;
//using System.Net.Http;
//using System.Net.Http.Json;
//using System.Threading.Tasks;
//using Core.FrameWork.Commons.ORM.Services;
//using Core.FrameWork.Commons.ORM.UnitWork;
//using Core.FrameWork.Models.Models.System;
//using Core.Freamwork.Repository.AdminUser.Abstraction;
//using Core.Web.Admin.Blazor.Models;
//using Core.Web.Admin.Blazor.Models.System.User;
//using Microsoft.AspNetCore.Components.Authorization;
//using System.Collections.Generic;
//using Core.FrameWork.Commons.Pages;

//namespace Core.Web.Admin.Blazor.Services.System
//{
//    public interface IUserService : IService<SysAdminUser, AdminUser>
//    {

//    }

//    public class UserService : BaseService<SysAdminUser, AdminUser>, IUserService
//    {
//        public UserService(ISysAdminUserRepository repository, IUnitWork unitWork) : base(repository, unitWork)
//        {

//        }
//        //public async Task<IEnumerable<AdminUser>> GetPageList(PagerInfo pagerInfo)
//        //{
//        //    return GetPageList(null, pagerInfo, null, null);
//        //}
//        //private readonly HttpClient _httpClient;

//        //public UserService(HttpClient httpClient)
//        //{
//        //    _httpClient = httpClient;
//        //}

//        //public async Task<CurrentUser> GetCurrentUserAsync()
//        //{
//        //    return await _httpClient.GetFromJsonAsync<CurrentUser>("data/current_user.json");
//        //}
//    }
//}